<template>
  <div class="head">
    <img :src="imgUrl" />
    <a href="javascirpt:;" class="mask"></a>
  </div>
</template>

<script>
import { computed } from "vue";
import { useStore } from "vuex";
export default {
  name: "FloorSingerPictures",
  setup() {
    const store = useStore();
    const imgUrl = computed(() =>
      store.state.PlaySong.presentSong?.al?.picUrl
        ? `${store.state.PlaySong.presentSong.al.picUrl}?param=34y34`
        : require("../../../common/images/default_album.jpg")
    );
    return {
      imgUrl,
    };
  },
};
</script>

<style scoped lang="less">
.head {
  float: left;
  position: relative;
  margin: 6px 15px 0 0;
  width: 34px;
  height: 34px;
  img {
    width: 34px;
    height: 34px;
    border-radius: 4px;
  }
  .mask {
    position: absolute;
    top: 0;
    display: block;
    width: 34px;
    height: 34px;
    background: url("../../../common/images/playbar.png") no-repeat 0 -80px;
  }
}
</style>
